package com.heima.homeservicemanagementsystem.module;

import jakarta.validation.GroupSequence;

/**
 * @Description
 * @Author jcf
 * @Date 2025/3/11
 */

public class ValidGroup {
    // 密码和账号
    public interface UserAndPassword {
    }

    // 电话和验证码
    public interface MobileAndCode {
    }

    // 邮箱和密码
    public interface EmailAndCode {
    }


    // 属性必须有这两个分组的才验证(配合spring的@Validated功能分组使用)
    @GroupSequence({UserAndPassword.class, MobileAndCode.class, EmailAndCode.class})
    public interface All {
    }
}
